<?php
namespace Admin\Models\cost;

use Admin\Models\BaseModel;

class CostChargeDetail extends BaseModel
{

    /**
     *
     * @var integer
     */
    public $id;

    /**
     *
     * @var integer
     */
    public $userId;

    /**
     *
     * @var string
     */
    public $year;

    /**
     *
     * @var double
     */
    public $receivable;

    /**
     *
     * @var double
     */
//    public $received;

    /**
     *
     * @var integer
     */
    public $serviceStart;

    /**
     *
     * @var integer
     */
    public $serviceEnd;

    /**
     *
     * @var double
     */
    public $devPrice;

    /**
     *
     * @var double
     */
    public $depositPrice;

    /**
     *
     * @var double
     */
    public $servicePrice;

    /**
     *
     * @var double
     */
    public $tutorPrice;

    /**
     *
     * @var integer
     */
    public $bDelete;

    /**
     *
     * @var string
     */
    public $tCreateDate;

    /**
     *
     * @var integer
     */
    public $iCreateUserId;

    /**
     *
     * @var string
     */
    public $tLastModifyDate;

    /**
     *
     * @var integer
     */
    public $iLastModifyUserId;

    /**
     * Initialize method for model.
     */
    public function initialize()
    {
        parent::initialize();
    }

    /**
     * Returns table name mapped in the model.
     *
     * @return string
     */
    public function getSource()
    {
        return 'XHCost_ChargeDetail';
    }

    /**
     * Allows to query a set of records that match the specified conditions
     *
     * @param mixed $parameters
     * @return CostChargeDetail[]|CostChargeDetail|\Phalcon\Mvc\Model\ResultSetInterface
     */
    public static function find($parameters = null)
    {
        return parent::find($parameters);
    }

    /**
     * Allows to query the first record that match the specified conditions
     *
     * @param mixed $parameters
     * @return CostChargeDetail|\Phalcon\Mvc\Model\ResultInterface
     */
    public static function findFirst($parameters = null)
    {
        return parent::findFirst($parameters);
    }

}
